(defun lutts-init-ivy nil
  (require 'ivy)

  (all-the-icons-ivy-rich-mode 1)
  (ivy-mode 1)
  (ivy-rich-mode 1)
  (setq ivy-use-virtual-buffers t)
  (setq ivy-count-format "(%d/%d) ")
  (add-hook 'evil-leader-mode-hook
            '(lambda () (evil-leader/set-key
                          "ti" 'ivy-mode
                          "rf" 'counsel-recentf)))
  (global-set-key (kbd "C-s") 'swiper)
  (global-set-key (kbd "M-x") 'counsel-M-x)
  (global-set-key (kbd "C-x C-f") 'counsel-find-file))

(lutts-load-package 'lutts-init-ivy 'ivy 'all-the-icons-ivy-rich 'ivy-hydra 'ivy-rich 'counsel 'swiper 'smex)

(provide 'init-ivy)
